<template>
  <router-link v-for="item in state.routerList" :key="item.id" :to='item.link'>{{item.title}}&nbsp;&nbsp;&nbsp;&nbsp;</router-link>
  <p v-html="a"></p>
  <router-view />
</template>

<script setup>
import { ref,reactive } from 'vue';
const a = ref('这是一个ref');
const state = reactive({
  routerList: [
    {title: '主应用与vue微应用',link:'/micro-vue'},
    {title: '主应用与vue微应用2',link:'/micro-vue2'},
    {title: '主应用与react微应用',link:'/micro-react'},
  ]
})

</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
